package com.base.key.domain.bo;
import com.base.common.core.domain.BaseEntity;
import com.base.common.core.validate.AddGroup;
import com.base.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;

import java.util.Date;

/**
 * 密钥归档记录业务对象 t_key_archive_record
 *
 * @author base
 * @date 2023-10-17
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class TKeyArchiveRecordBo extends BaseEntity {

    /**
     * key
     */
    @NotBlank(message = "key不能为空", groups = { EditGroup.class })
    private String autoId;

    /**
     * 文件名称
     */
    @NotBlank(message = "文件名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String fileName;

    /**
     * 文件大小
     */
    @NotNull(message = "文件大小不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long fileSize;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String operator;

    /**
     *
     */
    @NotBlank(message = "不能为空", groups = { AddGroup.class, EditGroup.class })
    private String remark;

    /**
     * 文件路径
     */
    @NotBlank(message = "文件路径不能为空", groups = { AddGroup.class, EditGroup.class })
    private String filePath;

    /**
     * 归档描述
     */
    @NotBlank(message = "归档描述不能为空", groups = { AddGroup.class, EditGroup.class })
    private String archiveDec;

    /**
     * 摘要(对归档文件做)
     */
    @NotBlank(message = "摘要(对归档文件做)不能为空", groups = { AddGroup.class, EditGroup.class })
    private String digest;

    /**
     * 签名值
     */
    @NotBlank(message = "签名值不能为空", groups = { AddGroup.class, EditGroup.class })
    private String signValue;

    /**
     * 归档日期
     */
    @NotNull(message = "归档日期不能为空", groups = { AddGroup.class, EditGroup.class })
    private Date archiveDate;


}
